Skip to content

Add BlobIOContextDep to ActionDescriptor.list_invocations so context vars are available#144

Merged
julianstirling merged 3 commits intomainfrom
add-blob-manager-to-action-descriptor-list-invocations
Jul 19, 2025
Merged

Add BlobIOContextDep to ActionDescriptor.list_invocations so context vars are available#144
julianstirling merged 3 commits intomainfrom
add-blob-manager-to-action-descriptor-list-invocations

Conversation

@julianstirling
Copy link
Copy Markdown
Contributor

This is a quick fix to #142

It is my understanding that ActionDescriptor.list_invocations would serialise the blob url, but has no BlobIOContextDep dependency. Why it is being called now and not before isn't totally clear to me. But, it seems to fix the error for now.

A more longterm fix where the arguments needed are provided explicitly would be good.

@julianstirling julianstirling force-pushed the add-blob-manager-to-action-descriptor-list-invocations branch from acb1e63 to bc7a404 Compare July 17, 2025 08:21
@barecheck
Copy link
Copy Markdown

barecheck bot commented Jul 17, 2025

Barecheck - Code coverage report

Total: 92.34%

Your code coverage diff: 0.02% ▴

Uncovered files and lines
FileLines
src/labthings_fastapi/actions/__init__.py144-145, 287-293, 411-412, 533-534, 539, 547, 572-573
src/labthings_fastapi/descriptors/action.py126, 130, 210-211, 215, 221, 223, 315-316, 319

Copy link
Copy Markdown
Collaborator

@rwb27 rwb27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me. Adding the test to get a useful error message is very helpful - I wish there was a neat way to build that into Blob but I can't think of one.

@julianstirling julianstirling force-pushed the add-blob-manager-to-action-descriptor-list-invocations branch from 635d9a7 to f8ff0fe Compare July 18, 2025 23:59
@julianstirling julianstirling merged commit c109ec7 into main Jul 19, 2025
14 checks passed
@julianstirling julianstirling deleted the add-blob-manager-to-action-descriptor-list-invocations branch July 19, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants